package com.scu.service;

import com.scu.pojo.Message;
import com.scu.pojo.MessageSearch;

import java.util.List;

public interface MessageService {
    public List<Message> checkMessage(MessageSearch info);
    public int markReadMessage(int u_id);
    public int deleteMessage(int u_id, int m_id);
    public int responseMessage(int m_writer_id,int m_receiver_id,String m_content);
    public List<Message> checkUndeliveredMessage(int u_id);
    public int sentUndeliveredMessage(int u_id,int m_id);
    public List<Message> checkMessageByPage(MessageSearch info);
    public int getMessageCount(MessageSearch info);
    public List<Message> checkUndeliveredMessageByPage(MessageSearch info);
    public int getUndeliveredCount(MessageSearch info);
}
